package com.AJava1710D.设计模式.适配器模式.对象适配器;

/**
 * 作者: LCG
 * 日期: 2020/6/29 11:31
 * 描述: 适配器类
 */
public class TargetObjectAdpeter implements TestObjectInterface {

    private TargetObject targetObject;

    public TargetObjectAdpeter(TargetObject targetObject) {
        this.targetObject = targetObject;
    }

    @Override
    public void test1() {
        targetObject.test1();
    }

    @Override
    public void test2() {

    }
}
